<template>
  <div>
    <van-tabs @click="onClick" line-width="60">
      <van-tab title="正在热映"></van-tab>
      <van-tab title="即将上映"></van-tab>
    </van-tabs>
  </div>
</template>

<script>
import Vue from 'vue'
import { Tab, Tabs } from 'vant'

Vue.use(Tab)
Vue.use(Tabs)
export default {
  data() {
    return {
      urlArr: ['/movie/playing', '/movie/feature']
    }
  },
  methods: {
    onClick(index) {
      this.$router.push(this.urlArr[index])
    }
  }
}
</script>

<style scoped>
</style>
